Documentation
Installation
Npm
$ npm install riot-compiler --save
Please note: the documentation is a work in progress. Contributions are welcome.
For babel users
Due to changes in the babel API, from our v2.3.0 we are separating the babel support in the following types:
- es6 - For
babel
and babel-core
v5.8.x and below - babel - For
babel-core
v6.x - You must npm install babel-preset-es2015-riot
too, for this to work.
Known Issues
- Expressions within attribute values containing
>
must be enclosed in quotes. Ex: <mytag hidden="{ a > 5 }">
. - Shorthands within attributes parsed by CoffeeScript must be prefixed with a caret:
<mytag class="{^ c:1 }">